package com.bonana.core.dao;

import com.bonana.core.entity.CoreUser;
import com.bonana.core.entity.CoreUserProfile;
import com.bonana.core.entity.mybatis.Project;
import com.bonana.core.entity.mybatis.ProjectComment;
import com.bonana.core.vo.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by Administrator on 2016/7/4.
 */
public interface CustomMapper {
    List<Project> getIndexProjects(@Param("cnt") Integer cnt);
    List<CoreUserProfile> getIndexBoers(@Param("cnt") Integer cnt);
    List<ProjectCommentVo> getProjectComments(@Param("projectId") Integer projectId);
    List<ProjectCommentVo> getChildComments(@Param("commentId") Integer commentId);
    List<ProjectVoteVo> getProjectVote(@Param("projectId") Integer projectId);
    List<CoreUserProfile> getProjectRecentVisitor(@Param("projectId") Integer projectId, @Param("cnt") Integer cnt);
    List<Project> getHotProjects(@Param("cnt") Integer cnt);
    List<BoCommentVo> getBoComments(@Param("boId") Integer boId);
    List<BoCommentVo> getBoChildComments(@Param("commentId") Integer commentId);
    List<BoPlanVo> getBoPlans(@Param("boId") Integer boId);

    //后台使用接口
    List<SiteStausVo> getActiveUser(@Param("cnt") Integer cnt);
    List<SiteStausVo> getActiveBoBo(@Param("cnt") Integer cnt);
    List<SiteStausVo> getNewUsers(@Param("cnt") Integer cnt);
    List<SiteStausVo> getNewComments(@Param("cnt") Integer cnt);

    List<CoreUserProfile> getHotBobos(@Param("cnt") Integer cnt);

    List<CoreUserProfile> getNewestBobos(@Param("cnt") Integer cnt);


}